<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.storage.Memory.immediateProcess</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/df4/classnars_1_1storage_1_1Memory_a175200c1f4c182222d0e66439b6e53a0.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a175200c1f4c182222d0e66439b6e53a0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void nars.storage.Memory.immediateProcess </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/ddc/classnars_1_1entity_1_1Task.html">Task</a>&#160;</td>
          <td class="paramname"><em>task</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Immediate processing of a new task, in constant time Local processing, in one concept only. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">task</td><td>the task to be accepted </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../db/d0c/Memory_8java_source.html#l00414">414</a> of file <a class="el" href="../../db/d0c/Memory_8java_source.html">Memory.java</a>.</p>

<p>References <a class="el" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append()</a>, <a class="el" href="../../df/d62/Concept_8java_source.html#l00096">nars.entity.Concept.directProcess()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00176">nars.storage.Memory.getConcept()</a>, <a class="el" href="../../d6/d10/Task_8java_source.html#l00108">nars.entity.Task.getContent()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00603">nars.storage.Memory.getCurrentConcept()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00592">nars.storage.Memory.getCurrentTerm()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00111">nars.storage.Memory.getRecorder()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00607">nars.storage.Memory.setCurrentConcept()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00629">nars.storage.Memory.setCurrentTask()</a>, and <a class="el" href="../../db/d0c/Memory_8java_source.html#l00596">nars.storage.Memory.setCurrentTerm()</a>.</p>

<p>Referenced by <a class="el" href="../../db/d0c/Memory_8java_source.html#l00363">nars.storage.Memory.processNewTask()</a>, and <a class="el" href="../../db/d0c/Memory_8java_source.html#l00387">nars.storage.Memory.processNovelTask()</a>.</p>
<div class="fragment"><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                                             {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935.html#a5daaf2cedc2672912d0727173eb2d935">setCurrentTask</a>(task); <span class="comment">// one of the two places where this variable is set</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().<a class="code" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">append</a>(<span class="stringliteral">&quot;!!! Insert: &quot;</span> + task + <span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_ae810a2e5d300b64d6aec58e1393a12cc.html#ae810a2e5d300b64d6aec58e1393a12cc">setCurrentTerm</a>(task.getContent());</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a35bd424fe988c2d2ac364e9f57d27858.html#a35bd424fe988c2d2ac364e9f57d27858">setCurrentConcept</a>(<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a.html#a3f45cdc40973611106276cfbc27a7a7a">getConcept</a>(<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a8e0d3146c07a1cc961d3ebc63317412d.html#a8e0d3146c07a1cc961d3ebc63317412d">getCurrentTerm</a>()));</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_afdfd74e7953d29059b2cc89b015ca8ec.html#afdfd74e7953d29059b2cc89b015ca8ec">getCurrentConcept</a>() != null) {</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;            <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_afdfd74e7953d29059b2cc89b015ca8ec.html#afdfd74e7953d29059b2cc89b015ca8ec">getCurrentConcept</a>().<a class="code" href="../../d4/d22/classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c.html#a9ea7c3154932d7a736c105eb55daeb5c">directProcess</a>(task);</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        }</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_ae810a2e5d300b64d6aec58e1393a12cc_html_ae810a2e5d300b64d6aec58e1393a12cc"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_ae810a2e5d300b64d6aec58e1393a12cc.html#ae810a2e5d300b64d6aec58e1393a12cc">nars.storage.Memory.setCurrentTerm</a></div><div class="ttdeci">void setCurrentTerm(Term currentTerm)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00596">Memory.java:596</a></div></div>
<div class="ttc" id="interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459_html_acb473be6e5d774c10781bc8e74453459"><div class="ttname"><a href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append</a></div><div class="ttdeci">abstract void append(String s)</div><div class="ttdoc">Add new text to display. </div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935_html_a5daaf2cedc2672912d0727173eb2d935"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a5daaf2cedc2672912d0727173eb2d935.html#a5daaf2cedc2672912d0727173eb2d935">nars.storage.Memory.setCurrentTask</a></div><div class="ttdeci">void setCurrentTask(Task currentTask)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00629">Memory.java:629</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a_html_a3f45cdc40973611106276cfbc27a7a7a"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a3f45cdc40973611106276cfbc27a7a7a.html#a3f45cdc40973611106276cfbc27a7a7a">nars.storage.Memory.getConcept</a></div><div class="ttdeci">Concept getConcept(Term term)</div><div class="ttdoc">Get the Concept associated to a Term, or create it. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00176">Memory.java:176</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c_html_a9ea7c3154932d7a736c105eb55daeb5c"><div class="ttname"><a href="../../d4/d22/classnars_1_1entity_1_1Concept_a9ea7c3154932d7a736c105eb55daeb5c.html#a9ea7c3154932d7a736c105eb55daeb5c">nars.entity.Concept.directProcess</a></div><div class="ttdeci">void directProcess(Task task)</div><div class="ttdoc">Directly process a new task. </div><div class="ttdef"><b>Definition:</b> <a href="../../df/d62/Concept_8java_source.html#l00096">Concept.java:96</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_afdfd74e7953d29059b2cc89b015ca8ec_html_afdfd74e7953d29059b2cc89b015ca8ec"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_afdfd74e7953d29059b2cc89b015ca8ec.html#afdfd74e7953d29059b2cc89b015ca8ec">nars.storage.Memory.getCurrentConcept</a></div><div class="ttdeci">Concept getCurrentConcept()</div><div class="ttdoc">The selected Concept. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00603">Memory.java:603</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1_html_aa4c7e1f5823d0404c0cab49b617968f1"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">nars.storage.Memory.getRecorder</a></div><div class="ttdeci">IInferenceRecorder getRecorder()</div><div class="ttdoc">Inference record text to be written into a log file. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00111">Memory.java:111</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a35bd424fe988c2d2ac364e9f57d27858_html_a35bd424fe988c2d2ac364e9f57d27858"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a35bd424fe988c2d2ac364e9f57d27858.html#a35bd424fe988c2d2ac364e9f57d27858">nars.storage.Memory.setCurrentConcept</a></div><div class="ttdeci">void setCurrentConcept(Concept currentConcept)</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00607">Memory.java:607</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a8e0d3146c07a1cc961d3ebc63317412d_html_a8e0d3146c07a1cc961d3ebc63317412d"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a8e0d3146c07a1cc961d3ebc63317412d.html#a8e0d3146c07a1cc961d3ebc63317412d">nars.storage.Memory.getCurrentTerm</a></div><div class="ttdeci">Term getCurrentTerm()</div><div class="ttdoc">The selected Term. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00592">Memory.java:592</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a175200c1f4c182222d0e66439b6e53a0_a175200c1f4c182222d0e66439b6e53a0_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a175200c1f4c182222d0e66439b6e53a0_a175200c1f4c182222d0e66439b6e53a0_icgraph.svg" width="100%" height="388"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../de/ddc/namespacenars_1_1storage.html">storage</a></li><li class="navelem"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:04:00 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
